//
//  HJShareSendMessageInputBar.h
//  KaiChat
//
//  Created by lx on 2024/3/8.
//

#import <UIKit/UIKit.h>
#import "HJResponderTextView.h"

NS_ASSUME_NONNULL_BEGIN

@class HJShareSendMessageInputBar, HJGradientButton;
 
@protocol HJShareSendMessageInputBarDelegate <NSObject>
 
 
- (void)inputBar:(HJShareSendMessageInputBar *)textView didChangeInputHeight:(CGFloat)offset;
- (void)inputBar:(HJShareSendMessageInputBar *)textView didSendText:(NSString *)text;

- (void)inputBar:(HJShareSendMessageInputBar *)textView textViewDidBeginEditing:(NSString *)text;

- (void)inputBarDidTouchKeyboard:(HJShareSendMessageInputBar *)textView;
- (void)inputBarDidDeleteBackward:(HJShareSendMessageInputBar *)textView;


@end
 

@interface HJShareSendMessageInputBar : UIView

 
@property (nonatomic, strong) UIView *lineView;
@property (nonatomic, strong) UIButton *sendButton;
@property (nonatomic, strong) HJResponderTextView *inputTextView;
@property (nonatomic, strong) UILabel *placeholderLabel;
 
@property (nonatomic, weak) id<HJShareSendMessageInputBarDelegate> delegate;

@property (nonatomic, assign) NSInteger count;

- (void)backDelete;

- (void)clearInput;

- (NSString *)getInput;

- (void)updateTextViewFrame;


@end


NS_ASSUME_NONNULL_END
